/**
* 功能: ios选择视频文件上传后的回调函数
* uploadType： 0成功 1失败 2上传中
*/
export default {
  name: 'xblFileUploadFinish',
  handler (option = {}, jsonStr, uploadType) {
    if (uploadType === '0') {
      return {
        jsonStr,
        uploadStatus: uploadType
      }
    } else if (uploadType === '1') {
      return Error('文件上传失败')
    } else if (uploadType === '2') {
      window.$ui.msg('文件上传中...')
      return { jsonStr: null, uploadStatus: 'uploading' }
    }
  }
}
